<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/Website/" />
<title>CancelReservation</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">CancelReservation</td></tr>
</thead><tbody>
<!--Created by Steven Chow-->
<!--Scenario 1: Reservation Successfully Uncancelled-->
<!---->
<!--Go to website-->
<tr>
	<td>open</td>
	<td>http://localhost:8080/Website/</td>
	<td></td>
</tr>
<!--Login-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile.bg-color-red &gt; div.tile-content.icon &gt; img</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=username</td>
	<td>User4</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass4</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>Customer Portal</td>
	<td></td>
</tr>
<!--Click on view reservation-->
<tr>
	<td>clickAndWait</td>
	<td>css=div.tile.bg-color-blue &gt; div.tile-content.icon &gt; img</td>
	<td></td>
</tr>
<!--Check if we are on the right page-->
<tr>
	<td>assertTitle</td>
	<td>Reservation List</td>
	<td></td>
</tr>
<!--Check if our reservation is there-->
<tr>
	<td>assertText</td>
	<td>//html/body/div/div[2]/div/div/div/div/form/table/tbody/tr/td[6]</td>
	<td>200.0</td>
</tr>
<tr>
	<td>click</td>
	<td>name=r1</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>name=remove</td>
	<td></td>
</tr>
<!--Check to see if the Reservation is Cancelled-->
<tr>
	<td>assertTextPresent</td>
	<td>200 points have been refunded</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Reservation ID </td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, '/Website/ViewResListURL?username=User4')]</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>No Data To Display. No Reservations are made.</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, '/Website/BackButtonURL?username=User4')]</td>
	<td></td>
</tr>
<tr>
	<td>assertText</td>
	<td>//html/body/div/div[2]/div/div[2]/a[2]/div/div/h2</td>
	<td>1000 pts</td>
</tr>
</tbody></table>
</body>
</html>
